package day10.one01;

public class workers {
    private String name;
    private int cno;
    private int sal;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCno() {
        return cno;
    }

    public void setCno(int cno) {
        this.cno = cno;
    }

    public int getSal() {
        return sal;
    }

    public void setSal(int sal) {
        this.sal = sal;
    }
    public void work(){
        System.out.println(name+"\ncno:"+cno+"\nsal:"+sal);
    }
}
